import { base } from "./api";
import axios from "./http";
import qs from "qs";

const LAWMONITORING = {
  // 镇街
  STREETTWON: params =>
    axios.get(`${base.URL}/bc_hb/selectTownshipAll`, { params }),
  // 站点名称
  SITENAME: params =>
    axios.get(`${base.URL}/bc_hb/selectDevinciInfoByTownshipId`, { params }),
  // 案卷站点类型
  FILESITETYPE: params =>
    axios.get(`${base.URL}/bc_hb/selectStationTypeAll`, { params }),
  // 处理人
  DEALINGPEOPLE: params =>
    axios.get(`${base.URL}/bc_hb/selectUserByTownshipid`, { params }),
  // 图片上传
  IMAGEVIDEO: params =>
    axios.post(`${base.URL}/bc_hb/uploadDocument`, qs.stringify(params)),
  // 新建案卷
  NEWFILES: params =>
    axios.get(`${base.URL}/bc_hb/insertBcCase_File`, { params }),
  // 案卷列表
  LISTOFFILES: params =>
    axios.get(`${base.URL}/bc_hb/selectBcCaseFileByhandlePeople`, { params }),
  // 案卷修改
  FILESTATUS: params =>
    axios.get(`${base.URL}/bc_hb/updateBcCase_File`, { params }),
  // 案卷浏览记录
  BROWSERECORD: params =>
    axios.get(`${base.URL}/bc_hb/selectOperationByCaseCode`, { params }),
  // 案卷统计饼图
  FILESTATISTICS: params =>
    axios.get(`${base.URL}/bc_hb/selectBcCaseFileStatistics`, { params }),
  // 所有案卷统计
  ALLFILESTATISTICS: params =>
    axios.get(`${base.URL}/bc_hb/selectCaseFileStatistByreportDate`, { params }),
  // 案卷统计镇街
  TOWNFILESTATISTICS: params =>
    axios.get(`${base.URL}/bc_hb/selectCaseFileStatisticsBytwonStreet`, { params }),
  // 案卷统计时间、镇街
  TIMEFILESTATISTICS: params =>
    axios.get(`${base.URL}/bc_hb/selectCaseFileStatisticsStartime`, { params }),
  //案卷巡查轨迹
  PATROLTRACK: params =>
    axios.get(`${base.URL}/bc_hb/selectBcCseFileTrajectory`, { params }),
  // 监督指挥
    // 乡镇数据
  TOWNSHIP: params =>
    axios.get(`${base.URL}/bc_hb/selectTownshipAll`,{params}),
  // 根据人员姓名查询
  TURENAME: params =>
    axios.get(`${base.URL}/bc_hb/selectUserLikeTurename`,{params}),
  // 在线离线人员查询
  // SUPUSERLIST: params =>
  //   axios.get(`${base.URL}/bc_hb/selectByOnline`,{params}),
  SUPUSERLIST: params =>
    axios.get(`${base.URL}/selectByOnline`,{params}),
  // 轨迹点位查询
  TRACEQUERY: params =>
    axios.get(`${base.URL}/bc_hb/trace/selectByInfo`, {
      params
    }),
  // 案卷状态
  INQUIRYSTATUS: params =>
    axios.get(`${base.URL}/bc_hb/seleFileTypeByLevel`,{params}),
};

export default LAWMONITORING;
